package main

import "fmt"

//标识符，关键字，命名规则

//匿名变量
func getNameAndAge() (string, int) {
	return "胖子", 22
}
func main() {
	name, age := getNameAndAge()
	fmt.Printf("name: %v\n", name)
	fmt.Printf("age: %v\n", age)
	//短变量命名
	/* name := "胖子"
	age := 22
	b := true */

	//初始化多个变量
	//var name, age, b = "胖子", 23, true

	/* var name string = "胖子"
	var age int = 22
	var b bool = true */

	/* var(
		name string
		age int
		b bool
	) */

	/* var 1name string
	var .age int */ //err

}
